package com.hongyun.tms.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@TableName("t_sys_dept")
@ApiModel(
    value = "SysDept对象",
    description = "系统管理-部门表"
)
@Data
public class SysDept implements Serializable {

    @ApiModelProperty("主键id")
    @TableId
    private String id;
    @ApiModelProperty("所属部门ID")
    private Long parentId;
    @ApiModelProperty("部门名称")
    private String name;
    @ApiModelProperty("部门代码")
    private String code;
    @ApiModelProperty("部门描述")
    private String description;
    @ApiModelProperty("排序")
    private Long sort;
    @ApiModelProperty("状态：0-正常，1-禁用")
    private Long state;
    @ApiModelProperty("更新时间")
    private Date updatedAt;
    @ApiModelProperty("创建时间")
    private Date createdAt;
}
